package com.sunshine.lnuplus.service

import android.app.Service
import android.content.Intent
import android.os.Binder
import android.os.IBinder
import android.util.Log
import com.sunshine.lnuplus.callback.LoadDataCallBack
import com.sunshine.lnuplus.internet.LoadBackground


class LoadBackgroundService : Service() {

    override fun onBind(intent: Intent): IBinder {
        Log.e("", "abc")
        return MyBind()
    }

    inner class MyBind : Binder() {
        val getService: LoadBackgroundService
            get() = this@LoadBackgroundService
    }

    fun setCallBack(callBack: LoadDataCallBack){
        LoadBackground(this, callBack)
    }

}
